home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 April: Mac OS SDK / Dev.CD Apr 97 SDK1.toast / Development Kits (Disc 1) / Open Transport / Sample Code / Network Watch (DMZ) v1.5.1 / Network Watch (DMZ) Readme < prev    next >
Encoding:
Text File  |  1996-11-19  |  2.4 KB  |  28 lines  |  [TEXT/ttxt]

  1. Network Watch (DMZ) Readme
  2. Version: 1.5.1
  3.  
  4. Apple Macintosh Developer Technical Support
  5. Written by:  Rich Kubota
  6. rkubota@apple.com
  7.  
  8. Copyright (work in progress)  Apple Computer, Inc 
  9.  
  10. You may incorporate this sample code into your applications without restriction, though the sample code has been provided "AS IS" and the responsibility for its operation is 100% yours.  However, what you are not permitted to do is to redistribute the source as "DSC Sample Code"
  11. after having made changes. If you're going to re-distribute the source, we require that you make it clear in the source that the code was descended from Apple Sample Code, but that you've made changes.
  12.  
  13. DMZ is a simple program based on work from an earlier Mac DTS engineer, Pete Helme, which can be used to display all of the AppleTalk network visible entries, that are available on a Local Area Network.  DMZ is compatible on systems running both classic AppleTalk and Open Transport networking.  DMZ detects whether Open Transport is active and will make native OT calls.
  14.  
  15. DMZ demonstrates some of the following network programming techniques
  16. 1. Implements an AppleTalk Transition Queue handler so that if AppleTalk is turned off/on, the program behaves correctly.
  17. 2. Implements a socket listener in 68K Assembler for catching Echo packet responses.  The socket listener is implemented as an 'sock' resource.
  18. 3. Demonstrates the loading/calling of the socket listener in native mode.
  19. 4. Uses the List Manager to display all of the zones.  Also uses the List Manager to list the available network visible entries within a selected zone.
  20. 5. Uses the AppleTalk Echo protocol to measure the ping time to a network visible entity to the nearest clock tick (1/60 sec).
  21. 6. Demonstrates how to place a DDP endpoint into raw mode so that the program can be delivered the DDP header as part of the incoming packet.  The program can then read the checksum, hop count, as well as the other DDP header fields which are not normally returned as part of the OTRcvUData call.
  22.  
  23. Limitations:
  24. 1. DMZ uses the List Manager to display the Network Visible entities.  The List Manager can only handle 32K worth of data.  There is a limit to the number of entities which can be displayed to stay within the List Manager limits.  As a result, in a very large zone, not all entities may be shown.
  25.  
  26. Changes for v1.5.1
  27.     Removed the generic BNDL and Creator resource from the resource file.
  28.